﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace HengTong.DataAccess.Migrations
{
    /// <inheritdoc />
    public partial class 录用候选池工号增加可空唯一索引 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateIndex(
                name: "IX_SysHrInterviewPool_HiredStaffNo",
                table: "SysHrInterviewPool",
                column: "HiredStaffNo",
                unique: true,
                filter: "HiredStaffNo IS NOT NULL");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropIndex(
                name: "IX_SysHrInterviewPool_HiredStaffNo",
                table: "SysHrInterviewPool");
        }
    }
}
